import request from '@/utils/request'

export function count() {
  return request({
    url: 'api/visits',
    method: 'post'
  })
}

export function get() {
  return request({
    url: 'api/visits',
    method: 'get'
  })
}

export function getLineChartData() {
  return request({
    url: 'api/visits/lineChartData',
    method: 'get'
  })
}
export function getBarChartData() {
  return request({
    url: 'api/visits/barChartData',
    method: 'get'
  })
}
export function getPieChartData() {
  return request({
    url: 'api/visits/pieChartData',
    method: 'get'
  })
}
